<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	%>
<html>
	<head>
		<title>系统配置项</title>
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jqGrid/themes/smoothness/jquery-ui-1.7.2.custom.css" />
		<script type="text/javascript" src="<%=request.getContextPath() %>/jqGrid/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath() %>/jqGrid/js/jquery-ui-1.8.21.custom.min.js"></script>
	    <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery.validate.min.js"></script>
	    <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/additional-methods.js"></script>
		      <!-- 删除结果信息返回 -->
       <c:if test="${requestScope.message!=null}">
           <script type="text/javascript">
                alert('<c:out value="${requestScope.message}"></c:out>');
                window.close()
           </script>
       </c:if>    
<style type="text/css">
    .log_label {
    width: 550px;
    background-color: #FFFFFF;
    text-align: right;
    height: 20px;
}
    .texe_wid{width:300px;}
    .td_value_wid{
         width:750px;
         height:20px;
         background-color: #FFFFFF;
}
</style>
        <script type="text/javascript">
 $(document).ready(function() {      
   $("#fom").validate({
        rules: {
        "info.sysLogsaveDay": {
            digits:true,
            maxlength:9
        },
        "info.sysCollectShownun":{
            digits:true,
            maxlength:9
        },
        "info.sysLocktime":{
            digits:true,
            maxlength:9
        },
        "info.sysPwdAlterDay":{
            digits:true,
            maxlength:9
        },
        "info.sysPwdAlterDay":{
            digits:true,
            maxlength:9
        },
        "info.sysPwdAlterPromptdayl": {
            digits:true,
            maxlength:50
        },
        "info.sysLockCount": {
            digits:true,
            maxlength:9
        },
        "info.sysPageCount": {
            digits:true,
            maxlength:9
        },
        //"info.sysDeltime": "systime",
        "info.sysMenuCount":{
            digits:true,
            maxlength:9
        },
        "info.sysEquipmentDay":{
            digits:true,
            maxlength:9
        },
        "info.sysFile":{
        	digits:true,
            maxlength:9
        },
        "info.sysLogpath":"sysurl"
       // "info.sysFilepath":"sysurl"
        },
        
        messages: {
            "info.sysLogsaveDay": {
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysCollectShownun":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysLocktime":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPwdAlterDay":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPwdAlterDay":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPwdAlterPromptdayl":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysLockCount":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPageCount":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysEquipmentDay":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
           // "info.sysDeltime":"请输入时间：04:00:00",
            "info.sysMenuCount":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysFile":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysLogpath":"路径格式不对或文件夹不存在,如C:\\WINDOWS"
           // "info.sysFilepath":"路径格式不对或文件夹不存在,如C:\\WINDOWS"
        }
    }); 
    $("#fom2").validate({
        rules: {
        "info.sysLogsaveDay": {
            digits:true,
            maxlength:9
        },
        "info.sysCollectShownun":{
            digits:true,
            maxlength:9
        },
        "info.sysLocktime":{
            digits:true,
            maxlength:9
        },
        "info.sysPwdAlterDay":{
            digits:true,
            maxlength:9
        },
        "info.sysPwdAlterDay":{
            digits:true,
            maxlength:9
        },
        "info.sysPwdAlterPromptdayl": {
            digits:true,
            maxlength:50
        },
        "info.sysLockCount": {
            digits:true,
            maxlength:9
        },
        "info.sysPageCount": {
            digits:true,
            maxlength:9
        },
        //"info.sysDeltime": "systime",
        "info.sysMenuCount":{
            digits:true,
            maxlength:9
        },
        "info.sysLogpath":"sysurl"
       // "info.sysFilepath":"sysurl"
        },
        "info.sysEquipmentDay":{
            digits:true,
            maxlength:9
        },
        messages: {
            "info.sysLogsaveDay": {
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysCollectShownun":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysLocktime":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPwdAlterDay":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPwdAlterDay":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPwdAlterPromptdayl":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysLockCount":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPageCount":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysEquipmentDay":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
           // "info.sysDeltime":"请输入时间：04:00:00",
            "info.sysMenuCount":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysLogpath":"路径格式不对或文件夹不存在,如C:\\WINDOWS"
           // "info.sysFilepath":"路径格式不对或文件夹不存在,如C:\\WINDOWS"
        }
    });
    $("#fom3").validate({
        rules: {
        "info.sysLogsaveDay": {
            digits:true,
            maxlength:9
        },
        "info.sysCollectShownun":{
            digits:true,
            maxlength:9
        },
        "info.sysLocktime":{
            digits:true,
            maxlength:9
        },
        "info.sysPwdAlterDay":{
            digits:true,
            maxlength:9
        },
        "info.sysPwdAlterDay":{
            digits:true,
            maxlength:9
        },
        "info.sysPwdAlterPromptdayl": {
            digits:true,
            maxlength:50
        },
        "info.sysLockCount": {
            digits:true,
            maxlength:9
        },
        "info.sysPageCount": {
            digits:true,
            maxlength:9
        },
        //"info.sysDeltime": "systime",
        "info.sysMenuCount":{
            digits:true,
            maxlength:9
        },
        "info.sysLogpath":"sysurl"
       // "info.sysFilepath":"sysurl"
        },
        "info.sysEquipmentDay":{
            digits:true,
            maxlength:9
        },
        messages: {
            "info.sysLogsaveDay": {
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysCollectShownun":{
                digits:"请输入数字",
                maxlength:"超出最大值"
            },
            "info.sysLocktime":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPwdAlterDay":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPwdAlterDay":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPwdAlterPromptdayl":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysLockCount":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysPageCount":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysEquipmentDay":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
           // "info.sysDeltime":"请输入时间：04:00:00",
            "info.sysMenuCount":{
                digits:"请输入正整数",
                maxlength:"超出最大值"
            },
            "info.sysLogpath":"路径格式不对或文件夹不存在,如C:\\WINDOWS"
           // "info.sysFilepath":"路径格式不对或文件夹不存在,如C:\\WINDOWS"
        }
    });
});    
		$(function(){ 
 				    $("#tabs").tabs({ 
 				        //disabled:[1],//定义不可用元素 
 				        selected:8 
 				        }); 
 				}) 
    </script>
	</head>
	<body>	
		<div id="tabs">
  			<ul>
  				<li><a href="#tab-1">系统配置</a></li> 
				<li><a href="#tab-2">用户安全配置</a></li> 
				<li><a href="#tab-3">系统应用配置</a></li> 
  			</ul>
  			<div id="tab-1">
  				 <s:form class="fom" id="fom" method="post" action="saveOrUpdate.action">
		 	<input type="hidden" name="info.sysConfigId" value="<s:property value="info.sysConfigId" />">
            <table border="0" cellpadding="4" cellspacing="1" bgcolor="#bcd7f2" align="center" width="100%">
                <!-- 
                   <tr>
                    <td colspan="4" style="background-color:#b7dbf3;text-align:center;height:20px;font-size:15px;font-weight:bold;">系统设定数据</td>
                </tr>
                 -->
                <tr>
                    <td class="log_label">上传文件路径:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysFilepath" value="<s:property value="info.sysFilepath" />" class="texe_wid"  /></td>                                   
                </tr>
                 <tr>           
                    <td class="log_label">系统日志保留天数:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysLogsaveDay" value="<s:property value="info.sysLogsaveDay"/>" class="texe_wid"  /></td>                                    
                </tr>    
                <tr>
                    <td class="log_label">定时删除日志时间:</td>
                    <td class="td_value_wid">
                   <!-- <input type="text" name="info.sysDeltime" value="<s:property value="info.sysDeltime"/>" class="texe_wid"  /> -->
                    <select name="info.sysDeltime" id="sysDeltime" style="width: 300px;">
                             <s:property value='info.sysDeltime'/>
                                <option value="" >请选择</option>
                                <option value="0" <s:if test="info.sysDeltime==0">selected</s:if>>00:00</option>
                                <option value="1" <s:if test="info.sysDeltime==1">selected</s:if>>01:00</option>                
                                <option value="2" <s:if test="info.sysDeltime==2">selected</s:if>>02:00</option>
                                <option value="3" <s:if test="info.sysDeltime==3">selected</s:if>>03:00</option>
                                <option value="4" <s:if test="info.sysDeltime==4">selected</s:if>>04:00</option>
                                <option value="5" <s:if test="info.sysDeltime==5">selected</s:if>>05:00</option>                
                                <option value="6" <s:if test="info.sysDeltime==6">selected</s:if>>06:00</option>
                                <option value="7" <s:if test="info.sysDeltime==7">selected</s:if>>07:00</option>
                                <option value="8" <s:if test="info.sysDeltime==8">selected</s:if>>08:00</option>
                                <option value="9" <s:if test="info.sysDeltime==9">selected</s:if>>09:00</option>                
                                <option value="10" <s:if test="info.sysDeltime==10">selected</s:if>>10:00</option>
                                <option value="11" <s:if test="info.sysDeltime==11">selected</s:if>>11:00</option>
                                <option value="12" <s:if test="info.sysDeltime==12">selected</s:if>>12:00</option>
                                <option value="13" <s:if test="info.sysDeltime==13">selected</s:if>>13:00</option>                
                                <option value="14" <s:if test="info.sysDeltime==14">selected</s:if>>14:00</option>
                                <option value="15" <s:if test="info.sysDeltime==15">selected</s:if>>15:00</option>
                                <option value="16" <s:if test="info.sysDeltime==16">selected</s:if>>16:00</option>
                                <option value="17" <s:if test="info.sysDeltime==17">selected</s:if>>17:00</option>                
                                <option value="18" <s:if test="info.sysDeltime==18">selected</s:if>>18:00</option>
                                <option value="19" <s:if test="info.sysDeltime==19">selected</s:if>>19:00</option>
                                <option value="20" <s:if test="info.sysDeltime==20">selected</s:if>>20:00</option>
                                <option value="21" <s:if test="info.sysDeltime==21">selected</s:if>>21:00</option>                
                                <option value="22" <s:if test="info.sysDeltime==22">selected</s:if>>22:00</option>
                                <option value="23" <s:if test="info.sysDeltime==23">selected</s:if>>23:00</option>                         
                        </select>
                    </td>                                  
                </tr>
                <tr>
                    <td class="log_label">采集数据展示数据:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysCollectShownun" value="<s:property value="info.sysCollectShownun" />" class="texe_wid"  /></td>    
                </tr>
                <tr>
                    <td class="log_label">设备到期提醒天数（天）:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysEquipmentDay" value="<s:property value="info.sysEquipmentDay" />" class="texe_wid"  /></td>    
                </tr>
                <tr>
                    <td class="log_label">上传文件最大值:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysFile" value="<s:property value="info.sysFile" />" class="texe_wid"  /></td>    
                </tr>
              			<input type="hidden" name="info.sysMenuCount" value="<s:property value="info.sysMenuCount" />" class="texe_wid"  />                                             
              			<input type="hidden" name="info.sysLockCount" value="<s:property value="info.sysLockCount"/>" class="texe_wid"  />               
                		<input type="hidden" id="deltime" name="info.sysLocktime" value="<s:property value="info.sysLocktime"/>" class="texe_wid"  />               				    
             			<input type="hidden" name="info.sysPwdAlterDay" value="<s:property value="info.sysPwdAlterDay"/>" class="texe_wid"  />    
             			<input type="hidden" name="info.sysPwd" value="<s:property value="info.sysPwd"/>" class="texe_wid"  /> 
             			<input type="hidden" name="info.sysPageCount" value="<s:property value="info.sysPageCount"/>" class="texe_wid"  />            
             			<input type="hidden" name="info.sysPwdAlterPromptdayl" value="<s:property value="info.sysPwdAlterPromptdayl"/>" class="texe_wid"  />               				    
                <tr>
                    <td colspan="4" style="text-align:center;height:20px;font-size:15px;font-weight:bold;">
						<span><input type="submit"  value="提 交" /></span>
					</td>
                </tr>
            </table>
            </s:form>
            </div>
            <div id="tab-2">
  				 <s:form class="fom" id="fom2" method="post" action="saveOrUpdate.action">
		 	<input type="hidden" name="info.sysConfigId" value="<s:property value="info.sysConfigId" />">
            <table border="0" cellpadding="4" cellspacing="1" bgcolor="#bcd7f2" align="center" width="100%">
                 <tr>
                    <td class="log_label">用户默认密码:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysPwd" value="<s:property value="info.sysPwd"/>" class="texe_wid"  /></td>                
                </tr>
                <tr>
                    <td class="log_label">密码错误锁定次数（次）:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysLockCount" value="<s:property value="info.sysLockCount"/>" class="texe_wid"  /></td>                
                </tr>
                <tr>                 
				    <td class="log_label">帐号锁定时间（分钟为单位）:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" id="deltime" name="info.sysLocktime" value="<s:property value="info.sysLocktime"/>" class="texe_wid"  /></td>                				    
                </tr>
                <tr>
				    <td class="log_label">密码定期强制修改的天数（天）:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysPwdAlterDay" value="<s:property value="info.sysPwdAlterDay"/>" class="texe_wid"  /></td>                
				</tr>
                <tr>     
				    <td class="log_label">密码到期前提示用户更改密码（天）:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysPwdAlterPromptdayl" value="<s:property value="info.sysPwdAlterPromptdayl"/>" class="texe_wid"  /></td>                				    
                </tr>  
                		<input type="hidden" name="info.sysFilepath" value="<s:property value="info.sysFilepath" />" class="texe_wid"  />                                  
               			<input type="hidden" name="info.sysLogsaveDay" value="<s:property value="info.sysLogsaveDay"/>" class="texe_wid"  />                                  
                  		<input type="hidden" name="info.sysDeltime" value="<s:property value="info.sysDeltime"/>" class="texe_wid"  />
              			<input type="hidden" name="info.sysMenuCount" value="<s:property value="info.sysMenuCount" />" class="texe_wid"  />                                             
           				<input type="hidden" name="info.sysCollectShownun" value="<s:property value="info.sysCollectShownun" />" class="texe_wid"  />
						<input type="hidden" name="info.sysEquipmentDay" value="<s:property value="info.sysEquipmentDay"/>" class="texe_wid"  />              
              			<input type="hidden" name="info.sysPageCount" value="<s:property value="info.sysPageCount"/>" class="texe_wid"  />              
                		<input type="hidden" name="info.sysFile" value="<s:property value="info.sysFile" />" class="texe_wid"  />
                <tr>
                    <td colspan="4" style="background-color:#b7dbf3;text-align:center;height:20px;font-size:15px;font-weight:bold;">
						<span><input type="submit" class="button_b" value="提 交" /></span>
					</td>
                </tr>
            </table>
        </s:form>
        </div>
        <div id="tab-3">
         <s:form class="fom" id="fom3" method="post" action="saveOrUpdate.action">
		 	<input type="hidden" name="info.sysConfigId" value="<s:property value="info.sysConfigId" />">
            <table border="0" cellpadding="4" cellspacing="1" bgcolor="#bcd7f2" align="center" width="100%">
               <!-- 
                 <tr>
                    <td colspan="4" style="background-color:#b7dbf3;text-align:center;height:20px;font-size:15px;font-weight:bold;">系统设定数据</td>
                 </tr>
                -->
             
                <tr>
                    <td class="log_label">每页显示个数:</td>
                    <td class="td_value_wid">&nbsp;<input type="text" name="info.sysPageCount" value="<s:property value="info.sysPageCount"/>" class="texe_wid"  /></td>                
                </tr>
                		<input type="hidden" name="info.sysFilepath" value="<s:property value="info.sysFilepath" />" class="texe_wid"  />                                  
              			<input type="hidden" name="info.sysPwd" value="<s:property value="info.sysPwd"/>" class="texe_wid"  />                
               			<input type="hidden" name="info.sysLogsaveDay" value="<s:property value="info.sysLogsaveDay"/>" class="texe_wid"  />                                  
                  		<input type="hidden" name="info.sysDeltime" value="<s:property value="info.sysDeltime"/>" class="texe_wid"  />
              			<input type="hidden" name="info.sysMenuCount" value="<s:property value="info.sysMenuCount" />" class="texe_wid"  />                                             
           				<input type="hidden" name="info.sysCollectShownun" value="<s:property value="info.sysCollectShownun" />" class="texe_wid"  />
              			<input type="hidden" name="info.sysLockCount" value="<s:property value="info.sysLockCount"/>" class="texe_wid"  />               
                		<input type="hidden" id="deltime" name="info.sysLocktime" value="<s:property value="info.sysLocktime"/>" class="texe_wid"  />               				    
						<input type="hidden" name="info.sysEquipmentDay" value="<s:property value="info.sysEquipmentDay"/>" class="texe_wid"  />              
             			<input type="hidden" name="info.sysPwdAlterDay" value="<s:property value="info.sysPwdAlterDay"/>" class="texe_wid"  />               
             			<input type="hidden" name="info.sysPwdAlterPromptdayl" value="<s:property value="info.sysPwdAlterPromptdayl"/>" class="texe_wid"  />               				    
             			<input type="hidden" name="info.sysFile" value="<s:property value="info.sysFile" />" class="texe_wid"  />
                <tr>
                    <td colspan="4" style="background-color:#b7dbf3;text-align:center;height:20px;font-size:15px;font-weight:bold;">
						<span><input type="submit" class="button_b" value="提 交" /></span>
					</td>
                </tr>
            </table>
        </s:form>
        </div>
  			</div>
	</body>
</html>